Introduction

Product Overview

Installation & Use

Support & Troubleshooting

Links

 

 


updated: 6/17/98


 

 

 

Related Topic

How Access Privileges are Maintained

This section explains how AppleShare File Server access privileges are stored. Understanding this process can help you avoid losing access privileges when updating the server, doing a clean system install, or moving shared volumes or Users & Groups from one server to another.


[Advanced]

AppleShare PDS and PDF files

Every user and group that you create is automatically assigned a unique ID number. Similarly, every folder has its own unique ID number. AppleShare uses these ID numbers--not the names of the Users, Groups, or Folders--to determine who has access to the various folders on the server.

Each volume on the server has a file that maintains the access privileges of the folders on that volume. For standard read/write volumes, the file is stored at the root level of the volume. It is an invisible file called "AppleShare PDS". (PDS stands for Parallel Data Structure.)

    The file is invisible so it won't be moved or renamed accidentally. If the file is moved or renamed, a new one will be created, and all privileges for that volume would be reset to the default (administrator is owner, no one else has privileges).

For read-only volumes such as CD's, the file that stores the privileges is located in the startup volume's System Folder:Preferences:Appleshare IP Preferences:Access Privileges: folder, and will be called '<name of CD>.PDF', for example "AppleShare 6.0.PDF". These PDF files work the same as the PDS files; if they are moved or renamed, a new one will be created, with default privileges.

Because the PDS files use unique numbers to identify the users, groups, and folders, the information in the PDS file will be invalid if these numbers change. As examples:

  • If you created a new Users & Groups data file, with all the same names and groups as the original, and substituted it for the original, privileges would be lost because the ID numbers would no longer match.

  • Similarly, if you did a Finder-copy of all your shared data to another hard drive, those copied folders would no longer have privileges (even if you also moved the PDS file over to the new volume), because the copied folders have different ID numbers associated with them. The information in the PDS file would be invalid, and privileges would be reset to the default.


Keeping U&G Data file and PDS files in sync

When File Services are starting up (and you see "this may take a few minutes" dialog), Appleshare is checking the information in the PDS and PDF files, and the data in the Users & Groups data file, and the folders on the volume, to make sure all information is still valid.

    Checking the privileges at start up can take some time, depending on the number of folders that need to be checked, and whether or not you're using explicit or inherited privileges at the server. See the section on Explicit vs. Inherited privileges for more details.

If it finds discrepancies, such as a single user no longer exists in the Users & Groups data file (such as what might happen if you restored that file from a backup), it will return that folder to default privileges. All privileges are lost when none of the information is found to be valid, which might happen if you do a clean system install, and don't restore your Users & Groups data file into place before starting up the file server.

As a precaution when doing a clean install on the server, you can backup not only the Users & Groups data file, but the PDS file for each volume on the server. If you should lose privileges at some point during the clean install process, you can restore the appropriate PDS backup file to its volume, and get privileges back.

    In order to back up the PDS files, you must first make them visible. This can be done with a disk utility, such as ResEdit, Norton Disk Doctor or File Buddy. These applications will let you view the "Finder Info" for the files, and turn off the "invisible" flag. You'll also need to make sure that you keep them straight, so you know which PDS file goes with which volume. You might do that by placing the backup files in a folder named after the volume it came from.

    UPDATE: Version 6.1 of AppleShare IP includes the ASIP First Aid Utility, which can verify, reconstruct, and backup the Users & Groups Data files and the server's PDS files


Moving File Sharing services to a different machine.

If you want to move all file sharing services to a different computer, you'll need to move the Users & Groups data file from the server to the new machine, and have it recognized before you move the shared data over. For instructions on how to do this, see the section on "Updating Both Server Software and Hardware" .


Troubleshooting Problems with File Sharing Starting Up

PDS files can sometimes get corrupted, which can have various symptoms, the most common is the server stays in "starting up" mode forever. Other symptoms might be that your share points keep getting unshared, or privileges don't change as expected.

This can happen with Personal File Sharing as well as with Appleshare File Servers. Problems starting up could also be an indication of corruption in the Users & Groups data file, but this is not as common.

If you're experiencing such problems, keep the following in mind:

  • Every volume on the desktop, except for floppy disks, is going to have an invisible PDS file on it, whether you share it or not.

  • Check for available free space on every volume on desktop; if there's not enough free space on the disk to create the PDS file, the startup process may hang.

      A good rule of thumb is to keep 10% of a drive's capacity free. For a 1GB drive, this means 100MB should be free. This also helps accommodate temporary files that need to be created, such as spool files created when printing. The bare minimum for the PDS files is around 300K.

  • If you have a current backup of the Users & Groups Data file, you can try swapping it out. This should cause you no loss of data, if you do it right. (And if you don't do it right, thank goodness you made backups of all your PDS files!)

  • If you suspect the problem is with PDS file corruption, check the PDF files (which hold the access privileges for any CD that's inserted into the server) in System Folder:PreferencesAppleshare IP Preferences:Access Privileges first. Move those files to another location, and see if the server starts up.

  • If you're still having problems, try moving the AppleShare PDS files to another location one by one, to see if you can determine which file is causing the problems. Do so by making the files visible first, then moving the files to a folder, appropriately named to represent the volume the file came from. If you find out they're not the culprit after all, you can return them to their original location, and have your privileges restored.

      Another method is to simply unmount volumes from the desktop, then try starting up file sharing. Of course you can't do this with the startup disk.

    UPDATE: Version 6.1 of AppleShare IP includes the ASIP First Aid Utility, which can verify, reconstruct, and backup the Users & Groups Data files and the server's PDS files